﻿using System.Collections.Generic;

namespace BuzzX8.Xmpp.StreamElements.Builders
{
    public class StreamErrorBuilder : ErrorElementBuilder<StreamError>
    {
        protected override IEnumerable<string> GetSupportedElementNames()
        {
            return new[] {"stream:error"};
        }

        protected override StreamError CreateNewElement(string name)
        {
            if (name == "stream:error") return new StreamError();
            throw new System.NotImplementedException();
        }
    }
}
